package demo;


import demo.standard.ConcreteObserverA;
import demo.standard.ConcreteObserverB;
import demo.standard.ConcreteSubject;
import demo.standard.IObserver;

public class ClientForStandard {

    public static void main(String[] args) {

        ConcreteSubject subject = new ConcreteSubject();

        IObserver observerA = new ConcreteObserverA(subject);
        subject.addObserver(observerA);
        IObserver observerB = new ConcreteObserverB(subject);
        subject.addObserver(observerB);
        subject.userForClient();

        subject.removeObserver(observerA);
        subject.userForClient();
    }
}
